#!/bin/bash

i=0; for file in `ls zip`; do mkdir output/${i}; echo "unzip zip/$file -d output/${i}";unzip -P abc zip/$file -d output/${i} > /dev/null; ((i++)); done
i=300; for file in `ls rar`; do mkdir output/${i}; echo "${i} unrar x rar/$file output/${i}";unrar x rar/$file output/${i} > /dev/null; ((i++)); done
